package com.hycreate.platform.common.utils.mypage;

public class PageDemo {

	//查询的条件
		private String valueId;
		
		//前一页
		private Boolean hasPrePage;
		//后一页
		private Boolean hasNextPage;
		//每页显示多少条:默认4条
		private int everyPage = 4;
		//总页数
		private int totalPage;
		//当前第多少页:默认第1页
		private int currentPage = 1;
		//开始下标
		private int beginIndex;
		//结束下标
		private int endinIndex;
		//总共多少条
		private int totalCount;
		
		
		public String getValueId() {
			return valueId;
		}
		public void setValueId(String valueId) {
			this.valueId = valueId;
		}
		public Boolean getHasPrePage() {
			return hasPrePage;
		}
		public void setHasPrePage(Boolean hasPrePage) {
			this.hasPrePage = hasPrePage;
		}
		public Boolean getHasNextPage() {
			return hasNextPage;
		}
		public void setHasNextPage(Boolean hasNextPage) {
			this.hasNextPage = hasNextPage;
		}
		public int getEveryPage() {
			return everyPage;
		}
		public void setEveryPage(int everyPage) {
			this.everyPage = everyPage;
		}
		public int getTotalPage() {
			return totalPage;
		}
		public void setTotalPage(int totalPage) {
			this.totalPage = totalPage;
		}
		public int getCurrentPage() {
			return currentPage;
		}
		public void setCurrentPage(int currentPage) {
			this.currentPage = currentPage;
		}
		public int getBeginIndex() {
			return beginIndex;
		}
		public void setBeginIndex(int beginIndex) {
			this.beginIndex = beginIndex;
		}
		public int getEndinIndex() {
			return endinIndex;
		}
		public void setEndinIndex(int endinIndex) {
			this.endinIndex = endinIndex;
		}
		public int getTotalCount() {
			return totalCount;
		}
		public void setTotalCount(int totalCount) {
			this.totalCount = totalCount;
		}
		@Override
		public String toString() {
			return "PageDemo [valueId=" + valueId + ", hasPrePage="
					+ hasPrePage + ", hasNextPage=" + hasNextPage
					+ ", everyPage=" + everyPage + ", totalPage=" + totalPage
					+ ", currentPage=" + currentPage + ", beginIndex="
					+ beginIndex + ", endinIndex=" + endinIndex
					+ ", totalCount=" + totalCount + "]";
		}	
}
